#include <iostream>
using namespace std;

const float PI = 3.14;

class Circle
{
	double radius;
public:
	Circle(double r) { radius = r; }
	double getRadius() { return radius; }
	double getArea() { return radius*radius*PI; }
};

class Table
{
	double height;
public:
	Table(double h) { height = h; }
	double getHeight() { return height; }
};

class RoundTable : public Circle, public Table
{
	char color[10];
public:
	RoundTable(double r, double h, char *c) : Circle(r), Table(h)
	{ 
		//color = new char[strlen(c)+1];
		strcpy(color, c);
	}
	char *getColor() { return color; }
};

#include "header.h"

void main()
{
	RoundTable rt(0.7, 1.2, "black");
	cout << rt.getRadius() << " "
		 << rt.getArea() << " "
		 << rt.getHeight() << " "
		 << rt.getColor() << endl;
	char str[] = "testing";
	cout << *(str+1) << endl;
}